<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
        <title></title>
    </head>
    <body>
        <script type="text/javascript">
            var txt = "Hello, javascript world";
            document.write(txt.length);
            // style the string
            document.write("<p>" + txt + "</p>");
            document.write("<p>" + txt.bold() + "</p>");
            document.write("<p>" + txt.toLowerCase() + "</p>");
            document.write("<p>" + txt.toUpperCase() + "</p>");
            document.write("<p>" + txt.match('Hello') + "</p>");
            document.write("<p>" + txt.match('hello') + "</p>");
            document.write("<p>" + txt.replace('javascript','HTML&CSS') + "</p>");
            document.write("<p>" + txt.indexOf("he") + "</p>");
            document.write("<p>" + txt.indexOf("He") + "</p>");

        </script>

        <script type="text/javascript">
            var txt = "hello world!\n";
            document.write(txt);
            document.write("<br />");
            document.write(txt.length);
            document.write("<br />");
            </script>
            <script type="text/javascript">
                var str = "Hello world!";
                document.write(str.toUpperCase());
                document.write("<br />");
                document.write(str.toLowerCase());
                </script>
            </body>
        </html>
